package com.test.seataorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (Order)实体类
 *
 * @author chengjian
 * @since 2021-07-13 17:22:02
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "account_order")
public class Order implements Serializable {
    private static final long serialVersionUID = -18408557769933276L;

    @TableId(type =  IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 产品id
     */
    private Long productId;
    /**
     * 数量
     */
    private Integer count;
    /**
     * 金额
     */
    private Double money;
    /**
     * 订单状态：0：创建中；1：已完结
     */
    private Integer status;
}
